package com.patterns.demo.visitor;

import com.patterns.demo.visitor.subject.MySubject;
import com.patterns.demo.visitor.subject.Subject;
import com.patterns.demo.visitor.visitor.MyVisitor;
import com.patterns.demo.visitor.visitor.Visitor;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/21
 */
public class Test {

    public static void main(String[] args) {

        Visitor visitor = new MyVisitor();

        Subject subject = new MySubject();

        subject.accept(visitor);
    }
}
